﻿@model csharp_books_415.Models.BooksIndexVm
@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>@Model.Greeting</h1>
    @Html.ActionLink("Create", "Create", "Home")
</div>

<div class="row">
    <div class="col-md-4">
        <h2>Books</h2>
        <ul>
            @foreach (var b in Model.Books)
            {

                <li>
                    @Html.ActionLink("Delete", "Delete", "Home", new { bid = b.BookId }, new { @class = "btn btn-xs btn-danger" })
                    @Html.ActionLink("Edit", "Edit", "Home", new { bid = b.BookId }, new { @class = "btn btn-xs btn-warning" })
                    @Html.ActionLink(b.Title, "Details", "Home", new { bid = b.BookId }, new { @class = "btn btn-xs btn-primary" })


</li>
            }

        </ul>
        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301865">Learn more &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Get more libraries</h2>
        <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Web Hosting</h2>
        <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more &raquo;</a></p>
    </div>
</div>